package com.tele.service.imps;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tele.domain.Gpu;
import com.tele.mapper.GpuMapper;
import com.tele.service.ints.GpuService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GpuServiceImp extends ServiceImpl<GpuMapper, Gpu> implements GpuService {
    @Override
    public List<Gpu> getAllGpu() {
        return baseMapper.selectList(null);
    }

    @Override
    public int insertGpu(Gpu gpu) {
        return baseMapper.insert(gpu);
    }

    @Override
    public int delGpu(Gpu gpu) {
        return baseMapper.deleteById(gpu);

    }

    @Override
    public int updateGpu(Gpu gpu) {
        return baseMapper.updateById(gpu);
    }
}
